package java6681.salary;

public class SalaryDemo6681 {
    public static void main(String[] args) {
        Worker6681 w = new Worker6681("小六",3000);
        Bachelor6681 b = new Bachelor6681("小八",4000);
        Master6681 m = new Master6681("小张",5000);
        System.out.println("工资增长5%");
        double percent = 0.05;
        w.raise(percent);
        b.raise(percent);
        m.raise(percent);
        System.out.println(w);
        System.out.println(b);
        System.out.println(m);
    }
}
